import java.util.Scanner;

public class demo02 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int count=0;

        while (scanner.hasNext()) {
            int num = scanner.nextInt();
            result(num,count);
            count++;
        }

        // scanner.close();

    }
    public static void result(int num, int count){

        if(count != 0) System.out.println("\n");

        for(int i =0;i<num;i++){
            int a = num-i-1;
            // 空格
            for (int j = 0; j < a; j++) {
                System.out.print(" ");
            }
            // 字符
            for (int j = 0; j < 2*i+1; j++) {
                System.out.print("*");
            }

            System.out.println();
        }
    }
}